<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>注册</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/main.css" />
    <script src="../../script/vue.min.js"></script>
    <script src="../../script/fastclick.js"></script>
    <style>
        #header {
          background: linear-gradient(to right, #49b2fb, #3969fb);
          /*background: #fff;*/
          color: #fff;
        }
    </style>
</head>

<body style="background:#fff">
    <div v-cloak id="register_one">
        <header id="header" class="aui-bar aui-bar-nav">
            <a class="aui-pull-left">
                <span class="aui-iconfont aui-icon-close" style="color:#fff" @click="closeWin"></span>
            </a>
            <div class="aui-title">登录</div>
        </header>
        <div class="" id="main"></div>
        <!-- <section class="register_one register_pub" v-show="state == 0">
            <div class="register_one_title">
              <h1>注册</h1>
              <p>欢迎使用有钱借</p>
            </div>
            <div class="register_one_input">
              <span class="phone_left" >+86</span>
              <input class="" type="number" maxlength="11" v-model="input" placeholder="请输入手机号" oninput="if(value.length>11)value=value.slice(0,11)">
              <span class="phone_right">X</span>
            </div>
            <div class="register_one_next">
              <button class="nextStep" @click="nextStep">下一步</button>
            </div>
        </section>

        <section class="register_one register_pub" v-show="state !== 0">
            <div class="register_one_title">
              <h1>注册</h1>
              <p>请输入{{input}}收到的验证码</p>
            </div>
            <div class="register_one_input">
              <input class="" type="number" maxlength="11" v-model="input" placeholder="验证码" >
            </div>
            <div class="register_one_next">
              <span class="getCode">获取验证码</span>
              <span class="getCode">120s</span>
              <button class="nextStep" @click="login">登录</button>
            </div>
        </section> -->
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript">
    apiready = function() {
        open();
        api.addEventListener({
            name:'viewdisappear'
        },function(){
            api.closeWin();
        });
        FastClick.attach(document.body);
    };
    var vm = new Vue({
        el: '#register_one',
        data: {
        },
        methods: {
            closeWin: function() {
                api.closeWin();
            }
        },
        created: function() {},
        mounted: function() {}
    })

    var header, headerPos, main, mainPos

    function open() {
        header = $api.byId('header');
        //适配iOS 7+，Android 4.4+状态栏
        $api.fixStatusBar(header);
        headerPos = $api.offset(header);
        main = $api.byId('main');
        mainPos = $api.offset(main);
        api.openFrame({
            name: 'register_two',
            url: 'register_two.html',
            bounces: false,
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
            },
            pageParam: {
              item: api.pageParam.item,
              key: api.pageParam.key
            }
        });

    }
</script>

</html>
